<script setup lang="ts">
import {reactive} from "vue";

let games = reactive([{id: 'fadfda01', name: '英雄联盟'}, {id: 'fasdfa02', name: '王者荣耀'}, {
  id: 'fdsafads03',
  name: '逆水寒'
}])
</script>

<template>
  <h2>游戏列表</h2>
  <slot :youxi="games"></slot>
<!--  <ul>-->
<!--    <li v-for="g in games" :key="g.id">{{ g.name }}</li>-->
<!--  </ul>-->
</template>

<style scoped>

</style>